package com.coupons.business.common.vo.decorator;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.coupons.business.common.vo.Page;

public class PageRowMapper implements RowMapper {

	public Object mapRow(ResultSet objaResultSet, int index) throws SQLException 
	{
		Page objlPage=  new Page();
		
		objlPage.setPageId(objaResultSet.getInt("page_id"));
		objlPage.setPageName(objaResultSet.getString("page_Name"));
		objlPage.setDescription(objaResultSet.getString("description"));
		
		return objlPage;
	}

}
